'''
	The position controller enables the box widget for the instrument. This
	allows the user to position the instrument before doinig the operation and 
	can also be used to simulate an operation.
	
	@author: J.H. Donker
	@
'''

from InputController import InputController
from InputInterface import InputWrapper

#gheto controller
class PositionController(InputController):
	'''
		Enables a boxwidget around the instrument. Knows more about the system
		than usual.
		
		@param inputInterface: A interface of version 1.1.
	'''
	def __init__(self, inputInterface):
		InputController.__init__(self, inputInterface)
		
	def Start(self):
		'''
			Start the boxwidget around the instrument.
		'''
		self._inputInterface.BoxWidgetInstrument(True)
	
	def Stop(self):
		'''
			Stops the boxwidget around the instrument.
		'''
		self._inputInterface.BoxWidgetInstrument(False)
	